#！/bin/bash
declare -a arr=()
declare -i count=0
for i in $(docker images | awk '{print$(1)}' | tail -n +2)
do
        arr[${count}]=${i}
        count=$count+1
done

count=0
for i in $(docker images | awk '{print$(2)}' | tail -n +2)
do
        echo "docker rmi ${arr[${count}]}:${i}"
        count=$count+1
done